package org.web.standardplatform.client.domain.buildproject;

import lombok.Getter;
import lombok.Setter;


@Setter
@Getter
public class ServerProjectDefinitionDO {

    ProjectDefinitionDO projectDefinitionDO;

    private String serverProjectName;

    private String serverProjectStartClassName;

    private String serverProjectClassName;

    private String serverProjectStartClassPackagePathName;

    private String dapPackagePathName;

    private String suffix;

    private Boolean hasDocker = true;


    // 做为配置文件前缀的标准
    public String getParentAndArtifactId(){
        return projectDefinitionDO.getGroupId()+"."+projectDefinitionDO.getArtifactId()+"."+serverProjectName;
    }

    public String getServerProjectClassNameForVariableName(){
        return serverProjectClassName.substring(0,1).toLowerCase()+serverProjectClassName.substring(1);
    }
}
